<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
	th:replace="fragments/frame::frame(~{fragments/menu::menu(8)}, ~{::th}, ~{::tr})">
<head></head>
<body>
	<table>
		<th>课程名称</th>
		<th>开课教师</th>
		<th>第几周开始</th>
		<th>第几周结束</th>
		<th>星期几上课</th>
		<th>第几节课</th>
		<th>教室名称</th>
		<th>课程类型</th>
		<th>是否选课</th>
        <!-- CourseInfo -->
		<tr th:each="cinfo : ${list}">
			<th:block th:with="c=${cinfo.course}">
				<td><input type="checkbox" id="check-all" class="flat"></td>
				<td th:text="${c.name}"></td>
				<td th:text="${cinfo.teacher}"></td>
				<td th:text="${c.startweek}"></td>
				<td th:text="${c.endweek}"></td>
				<td th:text="${c.dayofweek}"></td>
				<td th:text="${c.lesson}"></td>
				<td th:text="${c.classroom}"></td>
				<td th:text="${c.type}"></td>
				<td><a class="btn-sm btn-success"
					th:href="@{select/{c}(c=${c.no})}">选课</a></td>
			</th:block>
		</tr>
	</table>
</body>
</html>